package com.lijian.dubbo.consumer.main;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lijian.dubbo.consumer.action.UserAction;

public class MainClass {
	@SuppressWarnings("resource")
	public static void main(String[] args){
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        context.start();
        UserAction userAction = context.getBean(UserAction.class);
		String a = userAction.say("user ");
		System.out.println(a);
		
//		try {
//			System.in.read();
//		} catch (IOException e) {
//			e.printStackTrace();
//		} // 按任意键退出
	}
}
